import request from '@/utils/request'
export function getDataByIdApi(data) {
  return request({
    url: '/km/getDataById',
    method: 'get',
    params: data
  })
}
export function getDataApi(data) {
  return request({
    url: '/km/getData',
    method: 'get',
    params: data
  })
}
export function addDataApi(data) {
  return request({
    url: '/km/addData',
    method: 'post',
    data: data
  })
}

export function download(data) {
  return request({
    url: '/common/download',
    method: 'get',
    responseType: 'blob',
    params: data
  })
}
